package com.job.netease;

import java.util.Scanner;

/**
 * @ClassName: test.Netease1
 * @Description:
 * @Author: 12071
 * @Date: 2022/4/16 15:03
 */
public class Netease1 {
    public static void main(String[] args) {
        Scanner sc  =new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n-i; j++) {
                System.out.print(".");
            }
            for (int j = 0; j < 2*n+2*i; j++) {
                System.out.print("*");
            }
            for (int j = 0; j < n-i; j++) {
                System.out.print(".");
            }
            System.out.println();
        }
        for (int i = 0; i < 2 * n; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print("*");
            }
            for (int j = 0; j < 2 * n; j++) {
                System.out.print(".");
            }
            for (int j = 0; j < n; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (int i = 0; i < n; i++) {
            for (int j = 0; j <= i; j++) {
                System.out.print(".");
            }
            for (int j = 0; j < 2*n+2*(n-i-1); j++) {
                System.out.print("*");
            }
            for (int j = 0; j <= i; j++) {
                System.out.print(".");
            }
            System.out.println();
        }

    }
}
